Update Project
Updates the name and description of an existing project identified by its Pid.
Headers
| Header | Value |
|---|---|
user_id | Login username (email) |
api_key | API key of the user for authentication |
Content-Type | application/json |
Accept | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
accelqLoginUrl | string | Yes | The AccelQ login URL for API access. |
tenantCode | string | Yes | Tenant code for identifying the organization. |
pjPid | integer | Yes | The ID of the project to update. |
user_id | string | Yes | Login username (email) |
api_key | string | Yes | API key of the user for authentication |
Request Body
json
{
"projectName": "Updated Project Name",
"description": "Updated description"
}
Responses
200 - Project updated successfully.
json
true
409 - Conflict - Project name already exists.
json
{
"error": "A project with the name 'Updated Project Name' already exists."
}
422 - Project with specified PID not found.
json
{
"error": "Project with PID 3 not found."
}
cURL Command Builder
URL Parameters
Headers
Request Sample (cURL)
curl -X PUT "${{accelqLoginUrl}}/awb/api/2.0/${{tenantCode}}/administration/projects/${{pjPid}}" \
-H "user_id: ${{user_id}}" \
-H "api_key: ${{api_key}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"projectName": "Updated Project Name",
"description": "Updated description"
}'